package com.cloud.pikachu.dingtalk.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "pikachu-csd-service",fallback = WorkItemServiceClientHiHystric.class)
public interface WorkItemServiceClient {

    @RequestMapping(value = "/csd/workitem/later/{orderId}",method = RequestMethod.POST)
    List<WorkItem> selectWorkItems(@PathVariable("orderId") String orderId);
}
